/*
 * UMLSynch plugin for Eclipse
 * http://umlsynch.googlecode.com
 *
 * Copyright 2008-2010, Evgeny Alexeyev
 * Licensed under the EPL - v1.0
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */

package com.googlecode.umlsynch.eclipse.parser;

import java.util.ArrayList;

import org.eclipse.cdt.core.dom.ast.DOMException;
import org.eclipse.core.runtime.CoreException;

import com.googlecode.umlsynch.eclipse.astutils.ASTUtils;


public class GetClassBaseParser extends InputParser {

	public GetClassBaseParser()
	{
		input = "getClassBase";
		output = "returnClassBase";
		argNum = 3;
		InputParser.instance().addInputParser(this);
	}

	public String Parse(String cmd)
	{
		String[] cmdSplit = cmd.split(",");
		String result = null;
		if ((cmdSplit.length == argNum) && (cmdSplit[0].equals(input)))
		{
			result = output;
			projectName =  cmdSplit[1];
			className = cmdSplit[2];
			String res2 = Process();
			if (res2 != null)
			    result.concat(res2);
		}		
		return result;
	}
	
	public String Process() 
	{
		// Find class name
		ASTUtils au = new ASTUtils();
		return null; // au.getBaseClass(au.GetProject(projectName), className); 
	}
}
